<template>
  <span class="flex">
    <el-avatar :src="space.avatar" shape="square" :size="size" />
    <el-image
      v-if="space.top"
      :src="SpaceGoodImg"
      style="position: absolute; height: 45%; width: 65%"
    />
  </span>
</template>

<script>
import SpaceGoodImg from '@/assets/images/space-good.png';

export default {
  name: 'space-avatar',
  props: {
    space: Object,
    size: Number,
  },
  data() {
    return {
      SpaceGoodImg,
    };
  },
};
</script>

<style></style>
